<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>${title}</title>
    <meta name="keywords" content="在线支付案例，支付宝支付Demo">
    <link rel="stylesheet" href="/layui/css/layui.css">
    <meta name="description" content="一个Java实现的支付宝在线支付在线案例">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
</head>
<body>
<div class="layui-container">

    <#include "common/common.ftl"/>

    <div class="layui-row">
        <div class="layui-col-md12">
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>同步地址</legend>
            </fieldset>
            ${message}
        </div>
    </div>

</div></div>
</body>

<script src="/layui/layui.js"></script>

<script>
    layui.use(['form'], function(){
        var form = layui.form;

        //监听提交
        form.on('submit(paySubmit)', function(data){
            if(data.field.way=='支付宝'){
                data.form.action="/alipay/pay";
            }else if(data.field.way=='微信'){
                alert("抱歉，暂不支持该方式付款!");
            }
            return true;
        });
    });
</script>
<script src="/layui/layui.js"></script>
</html>
